x86 mca: Handle the vMCA bank correctly
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 29 Jan 2010 06:47:24 +0000 (06:47 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 29 Jan 2010 06:47:24 +0000 (06:47 +0000)
commit66cb09646d9ce8bbe6e2c91d6651e3fd77572cea
tree0f033786d15b8682db8dae5cbd14e32e4261b78a
parent729c84c4bf791db177d4295f0e7e5f647eca4659
x86 mca: Handle the vMCA bank correctly

Currently the virtual MCE MSR assume all MSRs range from 0 to
MAX_NR_BANKS are always MCE MSR, this is not always correct. With this
patch, the mce_rdmsr/mce_wrmsr will only handle vMCE MSR range from 0
to the MCA banks in the host platform.
Please notice that some MSR beyond current MCA banks in the host
platform are really MCA MSRs, that should be handled by general MSR
handler.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/cpu/mcheck/mce.c